<template>
  <div>
    Child2
    <p>仓库中 count is {{ $store.state.counter.count }}</p>
    <p>仓库中 double count is {{ $store.getters['counter/doubleCount'] }}</p>
  </div>
</template>

<script>
export default {
  mounted () {
    console.log('---state---', this.$store.state.counter.count)
    console.log('---getters---', this.$store.getters['counter/doubleCount'])
  },
  updated () {
    console.log('updated---state---', this.$store.state.counter.count)
    console.log(
      'updated---getters---',
      this.$store.getters['counter/doubleCount']
    )
  }
}
</script>
